﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="wctlPersonalSeleccionar.ascx.vb" Inherits="Controls_wctlPersonalSeleccionar" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"    Namespace="DevExpress.Web.ASPxDataView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"   Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<%@ Register Assembly="AnthemExtensions" Namespace="AnthemExtensions" TagPrefix="anthemext" %><%@ Register assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>

<script type="text/javascript">
function OnRowClick(e) {
	//Clear the text selection
	_aspxClearSelection();
	//Unselect all rows
	dgvPersonasDisponibles._selectAllRowsOnPage(false);
	//Select the row
	dgvPersonasDisponibles.SelectRow(e.visibleIndex, true);
	}

</script>

<style type="text/css">

    .style2
    {
        height: 21px;
        width: 138px;
    }
    .style3
    {
        width: 100px;
        height: 30px;
    }
    .style4
    {
        height: 21px;
        width: 94px;
    }
</style>
<fieldset style="font-size: 8pt; margin-left: 10px; width: 98%">
    <div>
        </div>
        <legend style="font-size: 11pt">
            <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/LogoPwC.jpg" /></legend>
        <br />
        &nbsp;
        <asp:Label ID="Label16" runat="server" CssClass="textMaroon" 
        Font-Bold="False" Font-Size="Large"
            Text="Seleccionar Personal"></asp:Label><br />
        <table class="textMaroon" style="font-weight: bold; margin-left: 8px; width: 637px">
            <tr>
                <td colspan="4" style="height: 21px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style4">
                    <asp:Label ID="Label2" runat="server" Font-Bold="False" Text="Categoría:" 
                        Width="63px"></asp:Label></td>
                <td class="style2">
                    <dx:ASPxComboBox ID="cboCategoria" runat="server" Height="20px" Width="150px" 
                        Enabled="False">
                    </dx:ASPxComboBox>
                </td>
                <td style="width: 100px; height: 21px">
                    &nbsp;</td>
                <td style="width: 100px; height: 21px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style4">
                    <asp:Label ID="Label18" runat="server" Font-Bold="False" Text="Fecha Inicio:"></asp:Label></td>
                <td class="style2">
                    <dx:ASPxDateEdit ID="cboFechaInicio" runat="server" Height="16px" Width="150px">
                    </dx:ASPxDateEdit>
                </td>
                <td style="width: 100px; height: 21px">
                    &nbsp;</td>
                <td style="width: 100px; height: 21px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style4">
                    <asp:Label ID="Label19" runat="server" Font-Bold="False" Text="Fecha Fin:"></asp:Label>
                </td>
                <td class="style2">
                    <dx:ASPxDateEdit ID="cboFechaFin" runat="server" Width="150px" 
                        Height="22px">
                    </dx:ASPxDateEdit>
                </td>
                <td style="width: 100px; height: 21px">
                    &nbsp;</td>
                <td style="width: 100px; height: 21px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style4">
        <span class="footerText">
                                <asp:Button ID="btnConsultar" runat="server" CssClass="button2" 
                                    Text="Consultar" Width="124px" />
        </span>
                </td>
                <td class="style2">
                    &nbsp;</td>
                <td style="width: 100px; height: 21px">
                </td>
                <td style="width: 100px; height: 21px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="3" style="height: 21px">
                    &nbsp;</td>
                <td style="height: 21px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="height: 21px" colspan="4">
        <span class="footerText">
                    <dx:ASPxGridView ID="dgvPersonasDisponibles" runat="server" 
                        AutoGenerateColumns="False" Caption="Listado de personas disponibles"
                        ClientInstanceName="dgvPersonasDisponibles" Font-Bold="False" KeyFieldName="percodPersona"
                        Width="573px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                        CssPostfix="PlasticBlue" DataSourceID="DsrcSeleccionarPersonal">
                        <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                            CssPostfix="PlasticBlue">
                            <Header Font-Bold="True" ImageSpacing="10px" SortingImageSpacing="10px">
                            </Header>
                            <AlternatingRow Enabled="True">
                            </AlternatingRow>
                        </Styles>
                        <Columns>
                            <dx:GridViewDataTextColumn Caption="ID" VisibleIndex="0" 
                                FieldName="percodPersona">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Apellidos y Nombres" VisibleIndex="1" 
                                FieldName="Nombre">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Categoría" VisibleIndex="2" 
                                FieldName="catdesCategoria">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Horas Disponibles" VisibleIndex="3" 
                                FieldName="Horas">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Los" VisibleIndex="4" 
                                FieldName="losdescripcion">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Sub Los" VisibleIndex="5" 
                                FieldName="sublosnombre">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Situación" VisibleIndex="6" 
                                FieldName="permrkEstado">
                            </dx:GridViewDataTextColumn>
                        </Columns>
                        <SettingsPager ShowDefaultImages="False">
                            <AllButton Text="All">
                            </AllButton>
                            <NextPageButton Text="Next &gt;">
                            </NextPageButton>
                            <PrevPageButton Text="&lt; Prev">
                            </PrevPageButton>
                        </SettingsPager>
                        <ImagesFilterControl>
                            <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                            </LoadingPanel>
                        </ImagesFilterControl>
                        <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                            <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                            </LoadingPanelOnStatusBar>
                            <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                            </LoadingPanel>
                        </Images>
                        <ClientSideEvents RowClick="function(s, e) { OnRowClick(e);}" />
                        <StylesEditors>
                            <CalendarHeader Spacing="11px">
                            </CalendarHeader>
                            <ProgressBar Height="25px">
                            </ProgressBar>
                        </StylesEditors>
                    </dx:ASPxGridView>
                    <asp:ObjectDataSource ID="DsrcSeleccionarPersonal" runat="server" 
                        SelectMethod="fuBLListarPersonalASeleccionar" 
                        TypeName="BLGestionProyecto.BLGPProyecto">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="cboFechaInicio" Name="pfpryfecInicioProy" 
                                PropertyName="Value" Type="DateTime" />
                            <asp:ControlParameter ControlID="cboFechaFin" Name="pfpryfecFinProy" 
                                PropertyName="Value" Type="DateTime" />
                            <asp:SessionParameter Name="pspercodCategoria" 
                                SessionField="CategoriaRequerimiento" Type="String" />
                                
                        </SelectParameters>
                    </asp:ObjectDataSource>
        </span>
                </td>
            </tr>
            <tr>
                <td style="height: 21px" colspan="4">
        <span class="footerText">
                    <asp:Label ID="lblmensaje" runat="server" Font-Size="Small" ForeColor="#C00000"></asp:Label>
        </span>
                </td>
            </tr>
            <tr>
                <td style="height: 21px" colspan="3">
                    <table>
                        <tr>
                            <td class="style3">
        <span class="footerText">
                                <asp:Button ID="btnAceptar" runat="server" CssClass="button2" 
                                    Text="Aceptar" Width="111px" />
        </span>
                            </td>
                            <td class="style3">
        <span class="footerText">
                                <asp:Button ID="btnCancelar" runat="server" CssClass="button2" 
                                    Text="Cancelar" Width="110px" />
        </span>
                            </td>
                        </tr>
                    </table>
                </td>
                <td style="height: 21px">
                    &nbsp;</td>
            </tr>
            </table>
    </div>
</fieldset>
